<!-- 导航URL -->
<div class="row wrapper border-bottom white-bg page-heading">
	<div class="col-md-12">
		<ol class="breadcrumb">
			<li><a>主页</a></li>
			<li><a>功能管理</a></li>
			<li class="active"><strong>使用券查询</strong></li>
		</ol>
	</div>
</div>
<!-- 主要内容 -->
<div class="wrapper wrapper-content animated fadeIn" ng-app ng-controller="activityVerificationInfoQueryCtrl">
	<form class="form-horizontal" id="form1">
			<div class="row">
				<div class="col-lg-12">
					<div class="">
						<div class="ibox float-e-margins">
							<div class="ibox-content">								
								<div class="form-group">

									<label class="col-sm-1 control-label">商户编号/名称：</label>
									<div class="col-sm-2">
										<input type="text" style="width: auto" class="form-control" ng-model="info.merchantName" onchange="keyChange()">
									</div>

									<label class="col-sm-1 control-label">商户手机号：</label>
									<div class="col-sm-2">
										<input type="text" style="width: auto" class="form-control" ng-model="info.mobileNo" onchange="keyChange()">
									</div>
									<label class="col-sm-1 control-label">使用说明：</label>
									<div class="col-sm-2">
										<select class="form-control"  ng-model="info.useType" ng-options="x.value as x.text for x in useTypeSelect">
										</select>
									</div>

								</div>

								<div class="form-group">
									<label class="col-sm-1 control-label">使用时间：</label>
									<div class="col-sm-5">
										<input id="d5221" class="form-control" type="datetime" ng-model="info.startTime" onchange=""  style="width:auto;display:inline-block;"
											   onFocus="var d5222=$dp.$('d5222');WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',changed:verifyTime(1,'#d5221','#d5222',31,isVerifyTime),onpicked:function(){d5222.focus();},maxDate:'#F{$dp.$D(\'d5222\')||\'%y-%M-%d\'}'})"/>
										-
										<input id="d5222" class="form-control" type="datetime"  ng-model="info.endTime" onchange=""  style="width:auto;display:inline-block;"
											   onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',changed:verifyTime(2,'#d5221','#d5222',31,isVerifyTime),minDate:'#F{$dp.$D(\'d5221\')}',maxDate:'%y-%M-%d 23:59:59'})"/>
										<br/><span><font color="#999">备注：查询范围不能超过一个月</font></span>
									</div>

									<label class="col-sm-1 control-label">所属代理商：</label>
									<div class="col-sm-2">
										<select name="autocomplete-select" id="autocomplete-select" ng-model="info.agentName" ng-options="x.value as x.text for x in agent" style="width: 100%" chosen chosen-data="agent" chosen-keyup="getStates">
										</select>
									</div>

								</div>

								<div class="form-group">

									<label class="col-sm-1 control-label">券编号：</label>
									<div class="col-sm-5">
										<input ng-model="info.couponNoBeg" type="text" style="width:auto;display:inline-block;" class="form-control" >
										-
										<div style="position: relative; display: inline-block">
											<input ng-model="info.couponNoEnd" type="text" style="width:auto;display:inline-block;" class="form-control" >
										</div>
									</div>

									<label class="col-sm-1 control-label">交易订单号：</label>
									<div class="col-sm-2">
										<input type="text" style="width: auto" class="form-control" ng-model="info.orderNo" onchange="keyChange()">
									</div>

								</div>
								<div class="form-group">
									<label class="col-sm-1 control-label">抵扣手续费：</label>
									<div class="col-sm-5">
										<input ng-model="info.verFeeBeg" type="text" style="width:auto;display:inline-block;" class="form-control" >
										-
										<div style="position: relative; display: inline-block">
											<input ng-model="info.verFeeEnd" type="text" style="width:auto;display:inline-block;" class="form-control" >
										</div>
									</div>
									<label class="col-sm-1 control-label">活动来源：</label>
                                    <div class="col-sm-2">
                                        <select class="form-control"  ng-model="info.couponCode" ng-options="x.value as x.text for x in couponCodes">
                                        </select>
                                    </div>
								</div>
								<div class="form-group">
									<label class="col-sm-1 control-label">券获取时间：</label>
									<div class="col-sm-5">
										<input id="d5223" class="form-control" type="datetime" ng-model="info.getStartTime" onchange=""  style="width:auto;display:inline-block;"
											   onFocus="var d5224=$dp.$('d5223');WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',changed:verifyTime2(1,'#d5223','#d5224',31,isVerifyTime),onpicked:function(){d5224.focus();},maxDate:'#F{$dp.$D(\'d5224\')||\'%y-%M-%d\'}'})"/>
										-
										<input id="d5224" class="form-control" type="datetime"  ng-model="info.getEndTime" onchange=""  style="width:auto;display:inline-block;"
											   onFocus="WdatePicker({skin:'whyGreen',dateFmt: 'yyyy-MM-dd HH:mm:ss',changed:verifyTime2(2,'#d5223','#d5224',31,isVerifyTime),minDate:'#F{$dp.$D(\'d5223\')}',maxDate:'%y-%M-%d 23:59:59'})"/>
										<br/><span><font color="#999">备注：查询范围不能超过一个月</font></span>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-1 control-label">券类型：</label>
									<div class="col-sm-2">
										<select class="form-control" ng-model="info.couponType" ng-change="couponTypeChange()" ng-options="x.value as x.text for x in couponTypeSelect">
										</select>
									</div>
									<label class="col-sm-1 control-label">子类型：</label>
									<div class="col-sm-2">
										<select class="form-control" ng-model="info.couponEntryType" ng-options="x.value as x.text for x in couponEntryTypes">
										</select>
									</div>
								</div>

								<div class="form-group">
									<div class="col-lg-12">
										<div class="col-sm-1"></div>
										<button class="btn btn-primary6 btn-mr20" type="button" id="btnSubmit" ng-click="query()">查询</button>
										<button class="btn btn-primary3 btn-mr20" type="button" ng-click="clear()" id="btnSubmit2">清空</button>
										<button class="btn btn-primary7 btn-mr20" ng-show="hasPermit('verificationInfo.verificationInfoExport')" type="button" ng-click="export()" id="export">导出</button>
									</div>
								</div>
								
							</div>
						</div>

						<div class="ibox float-e-margins">
							<div class="ibox-content">
								<div class="form-group">
									<div class="col-sm-2 checkbox">抵扣金额：<span ng-bind="verCount.verFee | currency:''"></span>元</div>
								</div>
								<div class="tposition">
									 <div ui-grid="gridOptions" ui-grid-pagination  ui-grid-resize-columns ui-grid-pinning class="grid"></div>
									<div ng-show="loadImg" class="timg"></div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
	</form>
</div>